<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

class CoreZipBase extends Base {
	
	//constructor
	function CoreZipBase() {
		parent::Base();
	}
	
	//methods
	function getZipDetail($zip) {
		$zip = func_db_input($zip);
		$query = "select * from pp_core_zones_zctas where zctas_postcode = '" . $zip . "'";
		$row = $this->adb->getRow($query);
		
		return $this->_post_field($row, '', 'zctas_');
	}
	
	function getZipItem($zip) {
		return $this->getZipDetail($zip);
	}
}
//
?>